package routers

import (
	"example.com/m/controllers/admin"
	"example.com/m/middleware"
	"github.com/gin-gonic/gin"
)

func AdminRoutersInit(r *gin.Engine) {
	adminRouters := r.Group("/admin", middleware.MiddleWare1, middleware.MiddleWare2)
	myRouters := admin.UserController{}
	{
		adminRouters.GET("/addOne", myRouters.AddUser)
		adminRouters.GET("/findOne", myRouters.GetUser)
	}
}
